<?php
	include "header.php";
	$plus ="";
	if( isset($_GET["erreur"]))
	{
		$erreurs = $_GET["erreur"];
		$plus ="?&erreur=".$erreurs;
	}
	else $erreurs=0;
?>
<div class="content">
		<form METHOD="POST" ACTION="testConnection.php<?php echo $plus; ?>">
		<table>
			<tr>
				<td>Email</td>
			</tr>
			<tr>
				<td><input type="text" size="60" name="id" ></td>
			</tr>
			<tr>
				<td>Mot de passe</td>
			</tr>
			<tr>
				<td><input type="text" size="60"  name="pass"></td>
			</tr>
			<tr>
				<td colspan="2" style="text-align:center">
					<input class="btSubmit" type="submit" name="enregistrer" value="Valider">
				</td>
			</tr>
			<?php 
				$aff = 3 - $erreurs;
				if ($aff < 0){
					$aff=0;
				}
				
				if ($erreurs > 0) {
					echo '<tr><td style="color:red">';
					echo $aff." tentative(s) restante(s)"; 
					echo "</td></tr>";
				}
			?>
		</table>
		</form>
</div>
<?php
	include "footer.php";
?>